package tt.lab.pmbok.model;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;

@Entity(name="artifact_template")
public class ArtifactTemplate {
	private int id;
	private String name;
	private List<ArtifactAttribute> attributes;
	
	@Id
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@OneToMany
	@JoinColumn(name="artifact_id")
	public List<ArtifactAttribute> getAttributes() {
		return attributes;
	}
	public void setAttributes(List<ArtifactAttribute> attributes) {
		this.attributes = attributes;
	}
	
}
